//
//  MainViewController.m
//  project-demo-oc
//
//  Created by 赵隆杰 on 2021/5/31.
//

#import "MainViewController.h"
#import "HomeViewController.h"
#import "SecondViewController.h"

@interface MainViewController ()

@end

@implementation MainViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    
    HomeViewController *home = [[HomeViewController alloc] init];
    SecondViewController *second = [[SecondViewController alloc] init];
    
    BaseNavigationController *home_nav = [[BaseNavigationController alloc] initWithRootViewController:home];
    home_nav.tabBarItem.title = @"首页";
    home_nav.tabBarItem.image = nil;
    BaseNavigationController *second_nav = [[BaseNavigationController alloc] initWithRootViewController:second];
    second_nav.tabBarItem.title = @"第二";
    second_nav.tabBarItem.image = nil;
    self.viewControllers = @[home_nav, second_nav];
    self.tabBar.tintColor = [UIColor orangeColor];
    
}


@end
